//
//  AppPreviewView.swift
//  LeTu
//
//  Created by g1 on 2024/3/6.
//

import UIKit

class AppPreviewView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        configUI()
    }
    
    // MARK: - configUI
    func configUI() {
        
        backgroundColor = .app_white
        
        addSubview(iconImgView)
        addSubview(nameLabel)
        
        iconImgView.snp.makeConstraints { make in
            make.width.height.equalTo(68)
            make.centerX.equalToSuperview()
            make.top.equalTo(186)
        }
        nameLabel.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.bottom.equalTo(-168)
        }
        
    }
    private lazy var iconImgView: UIImageView = {
        let iconImgView = UIImageView()
        iconImgView.image = UIImage(named: "logo_icon")
        iconImgView.contentMode = .scaleAspectFit
        return iconImgView
    }()
    private lazy var nameLabel: UILabel = {
        let nameLabel = UILabel()
        nameLabel.font = kSetPingFangMedium(16)
        nameLabel.text = "乐途旅游讲解"
        nameLabel.textColor = .app_themeColor
        return nameLabel
    }()
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
